package com.system.permissiondemo.param;

import lombok.Data;
import lombok.NonNull;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
public class AclModuleParam {

    private Integer id;
    @NotBlank
    @Length(min = 2,max = 20)
    private String name;

    private Integer parentId = 0;
    @NonNull
    private Integer seq;
    @NonNull
    @Min(value = 0)
    @Max(value = 1)
    private Integer status;
    @Length(max = 200)
    private String remark;

}
